
obj-m := src/gpio.o
	 #src/bcm2835.o

KDIR  := /home/seonkeun/linux
PIKDIR  := /usr/src/linux-source-3.2
PWD   := $(shell pwd)
ARCH   =ARCH=arm
CROSS_COMPILE =CROSS_COMPILE=arm-linux-gnueabi-
MAKEARCH = $(MAKE) $(ARCH) $(CROSS_COMPILE)
#MAKEARCH = $(MAKE)
#INCLUDE = -I/usr/include
#LIB	= -Llib -lbcm2835

default:
	$(MAKEARCH) -C $(KDIR) SUBDIRS=$(PWD) modules
pi:
	$(MAKE) -C $(PIKDIR) SUBDIRS=$(PWD) modules
clean:
	$(MAKEARCH) -C $(KDIR) SUBDIRS=$(PWD) clean
piclean:
	$(MAKE) -C $(PIKDIR) SUBDIRS=$(PWD) clean
